<template>
    <div>
        <input v-model="ipAddress">
        <el-button @click="saveSetting()" type="primary" style="margin-left: 10px;">保存设置</el-button>
    </div>
</template>

<style scoped></style>

<script>
import request from "../axios/request";
export default {
    data() {
        return {
            ipAddress: null
        }
    },
    methods:{
        saveSetting(){
            localStorage.setItem("ipAddress",  "http://"+this.ipAddress+":8087")
            this.ipAddress = null
        }
    }
}
</script>